package qq.util;

import java.util.HashMap;
import java.util.Map;


public class AuthUtil {
    public static Map<String,String> GetAuth(){
        Long timstamp=System.currentTimeMillis();
        Map<String,String> map = new HashMap<>();
        map.put(AuthConstants.APP_ID,"91");
        map.put(AuthConstants.APP_KEY,"52915318-03a5-48c9-975a-fafaee989154");
        map.put(AuthConstants.TIME_STAMP,String.valueOf(timstamp));
        try {
            map.put(AuthConstants.TOKEN,MD5Util.encrypt(ApiRequest.buildApiRequest(map).toString()));
        } catch (Exception e) {
            e.printStackTrace();
        }
        return map;
    }
}
